# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=kine
pkgver=0.5.1
pkgrel=5
pkgdesc="etcd API with sqlite, Postgres, Mysql, or dqlite backed"
url="https://github.com/rancher/kine"
arch="all"
license="Apache-2.0"
makedepends="sqlite-dev go"
subpackages="$pkgname-doc"
options="!check" # no testsuite
source="$pkgname-$pkgver.tar.gz::https://github.com/rancher/kine/archive/v$pkgver.tar.gz"
provides="etcd-api"

build() {
	go build -v  -ldflags="-w -s" .
}

package() {
	install -D -m755 kine "$pkgdir"/usr/bin/kine
	install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/kine/LICENSE
}

sha512sums="0eb5bbfd473fc0a656f0592e655fffd23b83277c3d1f3e6e338f2362b1e168dbf497c503f013a4b56cf2bd1fe5b95f74024ee53bc452765799cc903c12a2df59  kine-0.5.1.tar.gz"
